package PetCes;

public class LoginCheck {
	private String name;
	private String password;
	private String number;
	private String email;	

	public LoginCheck(String name, String password) {
		this.name = name;
		this.password = password;
	}
	public LoginCheck(String name, String password, String number, String email) {
		this.name = name;
		this.password = password;
		this.number = number;
		this.email = email;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean validate() {
		if ("ad".equals(name) && "ad123".equals(password)) {
			return true;
		} else {
			return false;
		}
	}
}
